package com.team16.budgetme;

import java.math.BigDecimal;

/**
 * @author Wil Wilhite A data holding class for transactions.
 */
public class Transaction {
    private long id;
    private String account;
    private BigDecimal amount;
    private String category;
    private int type; // 1 = income, 0 = expense
    private String date;

    public Transaction() {
    }

    public void setId(long i) {
        id = i;
    }

    public void setAccount(String a) {
        account = a;
    }

    public void setType(int t) {
        type = t;
    }

    public void setCategory(String c) {
        category = c;
    }

    public void setAmount(BigDecimal a) {
        amount = a;
    }

    public void setDate(String d) {
        date = d;
    }

    public long getId() {
        return id;
    }

    public String getAccount() {
        return account;
    }

    public int getType() {
        return type;
    }

    public String getCategory() {
        return category;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public String getDate() {
        return date;
    }
}
